import React from 'react';
import ReactDOM from 'react-dom';
import { BrowserRouter as Router } from 'react-router-dom';
import { ConfigProvider } from 'antd';
import App from './router';
import ErrorPage from './pages/ErrorPage';
require('./style/index.less');
// import './style/pages/login.less';

const prefixCls = 'undefined-nav';
const ConfigProviderProps = {
  // 全局化配置
  prefixCls,
};
ReactDOM.render(
  <ConfigProvider {...ConfigProviderProps}>
    <Router>
      <ErrorPage>
        <App />
      </ErrorPage>
    </Router>
  </ConfigProvider>,
  document.getElementById('root')
);
